package com.sudo.dao.admin.model.bo;

import com.sudo.common.utils.PageBO;
import com.sudo.common.validenum.EnumValue;

import javax.validation.constraints.NotBlank;

public class SysServerNodeJobBO extends PageBO {

    private Integer id;

    private String server;

    private String beanName;

    @NotBlank(message = "方法名不能为空")
    private String methodName;

    private String methodParams;

    private String callbackFun;

    // Cron表达式
    @NotBlank(message = "cron表达式不能为空")
    private String cronExpression;

    private String status;

    @EnumValue(strValues = {"ON","OFF"},message = "日志状态必须为指定值ON/OFF")
    private String logStatus;

    @EnumValue(strValues = {"ON","OFF"},message = "邮件状态必须为指定值ON/OFF")
    private String mailStatus;

    private String mailAddress;

    private String note;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getServer() {
        return server;
    }

    public void setServer(String server) {
        this.server = server;
    }

    public String getBeanName() {
        return beanName;
    }

    public void setBeanName(String beanName) {
        this.beanName = beanName;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public String getMethodParams() {
        return methodParams;
    }

    public void setMethodParams(String methodParams) {
        this.methodParams = methodParams;
    }

    public String getCallbackFun() {
        return callbackFun;
    }

    public void setCallbackFun(String callbackFun) {
        this.callbackFun = callbackFun;
    }

    public String getCronExpression() {
        return cronExpression;
    }

    public void setCronExpression(String cronExpression) {
        this.cronExpression = cronExpression;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getLogStatus() {
        return logStatus;
    }

    public void setLogStatus(String logStatus) {
        this.logStatus = logStatus;
    }

    public String getMailStatus() {
        return mailStatus;
    }

    public void setMailStatus(String mailStatus) {
        this.mailStatus = mailStatus;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public String getMailAddress() {
        return mailAddress;
    }

    public void setMailAddress(String mailAddress) {
        this.mailAddress = mailAddress;
    }
}
